Skip to content

chore: support release branches in CI workflows (cherry-pick to release-1.10)#112

Merged
jrichter1 merged 1 commit into
redhat-developer:release-1.10from
subhashkhileri:cherry-pick/workflows-release-1.10
Jun 10, 2026
Merged

chore: support release branches in CI workflows (cherry-pick to release-1.10)#112
jrichter1 merged 1 commit into
redhat-developer:release-1.10from
subhashkhileri:cherry-pick/workflows-release-1.10

Conversation

@subhashkhileri

Copy link
Copy Markdown
Member

Summary

Cherry-pick of #111 to release-1.10.

  • publish-npm.yml: Trigger on release-* branches. Release branches publish with a stripped npm dist-tag (e.g., release-1.10 → tag 1.10) so latest stays pinned to main. Includes branch guard to prevent accidental publishes from arbitrary branches via workflow_dispatch.
  • pr-build-and-check.yml: Accept PRs targeting release-* branches. Replace hardcoded origin/main with dynamic origin/${{ github.base_ref }} (via env vars) so version-check and docs-check compare against the correct base branch.

Test plan

  • Verify PR checks pass against release-1.10 base
  • After merge, verify publish workflow triggers correctly on package.json changes

Assisted-by: Claude Code

- publish-npm.yml: trigger on release-* branches, publish with branch
  name as npm dist-tag so `latest` stays on main
- pr-build-and-check.yml: accept PRs targeting release-* branches,
  use dynamic base ref instead of hardcoded origin/main

Assisted-by: Claude Code
Co-Authored-By: Claude Code
@jrichter1 jrichter1 merged commit c21003d into redhat-developer:release-1.10 Jun 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants